#include<stdio.h>
#include<stdlib.h>
#include<unistd.h>
#include<sys/wait.h>
#include<sys/types.h>

int main()
{
  pid_t id = fork();
  if(id == 0)
  { 
    while(1){
      sleep(1);
      printf("pid:%d\n",getpid());
    }
  }else{
      sleep(5);
  }
  return 0;
}
